/*********************************************************
 * Cameron Hilton
 * CS362_400
 * 
 * Test to see if player's turn properly identified in whoseTurn() function
 ********************************************************/

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main() {
    
    int seed = 1000;
    int numPlayer = 4;
    int i;
    
	struct gameState state;
	int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse, sea_hag, tribute, smithy};

	initializeGame(numPlayer, k, seed, &state);
	
	for (i = 0; i < numPlayer; i++) {
		printf("Testing return value for player #%d\n", i);

		state.whoseTurn = i;
		assert(whoseTurn(&state) == state.whoseTurn); // initial game state should not result in game being over
	}

    printf("All tests passed!\n");

    return 0;
}